// Programming_Scala/src/ch08/foldreduce-script.scala
val reducedLeft = List( 1, 2, 3, 4, 5, 6 ) reduceLeft( _ + _ )
println( "reducedLeft is " + reducedLeft )

val foldLeft = List( 1, 2, 3, 4, 5, 6 ).foldLeft(10)( _ * _ )
println( "foldLeft is " + foldLeft )
